package com.itshare.video.mapper.custom;

import com.itshare.video.pojo.po.Advertisement;
import com.itshare.video.pojo.query.AdvertisementQuery;
import com.itshare.video.pojo.vo.FrontAdvertisementVO;

import java.util.List;

/**
 * @Author lyr
 * @create 2020/11/4 21:19
 */
public interface AdvertisementMapperCustom {


    int insertOrUpdate(Advertisement advertisement);

    /**
     * 后台管理展示页面
     * @param query
     * @return
     */
    List<Advertisement> listByQuery(AdvertisementQuery query);


    /**
     * 前台展示页面
     * @param query
     * @return
     */
    List<FrontAdvertisementVO> listFrontAdvertisementByQuery(AdvertisementQuery query);
    //update by primary KEY

}
